//
// Created by luolijun on 2021/10/31.
//

#ifndef ASSERTS_H
#define ASSERTS_H

// clang-format off
#ifndef ASSERT

#if defined(Q_ASSERT)
    #include <qglobal.h>
    #define ASSERT(expr) Q_ASSERT(expr)
#else
    #if defined(DEBUG)
        #include <cassert>
        #define ASSERT(expr) assert(expr)
    #else
        #define ASSERT(expr)
    #endif
#endif

#endif
// clang-format on

#endif // ASSERTS_H
